package cn.stylefeng.guns.modular.fruits.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.fruits.entity.FruitsBasicCustomer;
import cn.stylefeng.guns.modular.fruits.model.params.FruitsBasicCustomerParam;
import cn.stylefeng.guns.modular.fruits.model.result.FruitsBasicCustomerResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 客户管理 服务类
 */
public interface FruitsBasicCustomerService extends IService<FruitsBasicCustomer> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2022-06-14
     */
    void add(FruitsBasicCustomerParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2022-06-14
     */
    void delete(FruitsBasicCustomerParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2022-06-14
     */
    void update(FruitsBasicCustomerParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2022-06-14
     */
    FruitsBasicCustomerResult findBySpec(FruitsBasicCustomerParam param,Long operateId);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2022-06-14
     */
    List<FruitsBasicCustomerResult> findListBySpec(FruitsBasicCustomerParam param,Long operateId);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2022-06-14
     */
     LayuiPageInfo findPageBySpec(FruitsBasicCustomerParam param,String condition,Long operateId);

}
